package com.lingnan.tijian.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lingnan.tijian.mapper.SetmealDetailedMapper;
import com.lingnan.tijian.domain.SetmealDetailed;
import com.lingnan.tijian.service.ISetmealDetailedService;

/**
 * 套餐详情Service业务层处理
 * 
 * @author laozhong
 * @date 2025-01-06
 */
@Service
public class SetmealDetailedServiceImpl implements ISetmealDetailedService 
{
    @Autowired
    private SetmealDetailedMapper setmealDetailedMapper;

    /**
     * 查询套餐详情
     * 
     * @param id 套餐详情主键
     * @return 套餐详情
     */
    @Override
    public SetmealDetailed selectSetmealDetailedById(String id)
    {
        return setmealDetailedMapper.selectSetmealDetailedById(id);
    }

    /**
     * 查询套餐详情列表
     * 
     * @param setmealDetailed 套餐详情
     * @return 套餐详情
     */
    @Override
    public List<SetmealDetailed> selectSetmealDetailedList(SetmealDetailed setmealDetailed)
    {
        return setmealDetailedMapper.selectSetmealDetailedList(setmealDetailed);
    }

    /**
     * 新增套餐详情
     * 
     * @param setmealDetailed 套餐详情
     * @return 结果
     */
    @Override
    public int insertSetmealDetailed(SetmealDetailed setmealDetailed)
    {
        return setmealDetailedMapper.insertSetmealDetailed(setmealDetailed);
    }

    /**
     * 修改套餐详情
     * 
     * @param setmealDetailed 套餐详情
     * @return 结果
     */
    @Override
    public int updateSetmealDetailed(SetmealDetailed setmealDetailed)
    {
        return setmealDetailedMapper.updateSetmealDetailed(setmealDetailed);
    }

    /**
     * 批量删除套餐详情
     * 
     * @param ids 需要删除的套餐详情主键
     * @return 结果
     */
    @Override
    public int deleteSetmealDetailedByIds(String[] ids)
    {
        return setmealDetailedMapper.deleteSetmealDetailedByIds(ids);
    }

    /**
     * 删除套餐详情信息
     * 
     * @param id 套餐详情主键
     * @return 结果
     */
    @Override
    public int deleteSetmealDetailedById(String id)
    {
        return setmealDetailedMapper.deleteSetmealDetailedById(id);
    }
}
